import request from '@/utils/request'

// 查询角色列表
export function listsubsystem(query) {
    return request({
        url: '/system/subsys/queryPage',
        method: 'get',
        params: query
    })
}

// 新增角色
export function addsubsystem(data) {
    return request({
        url: '/system/subsys/save',
        method: 'post',
        data: data
    })
}

// 修改角色
export function deletesubsystem(id) {
    return request({
        url: '/system/subsys/batchDelete',
        method: 'delete',
        data:id
    })
}
export function updatesubsystem(data) {
    return request({
        url: '/system/subsys/update',
        method: 'put',
        data: data
    })
}

export function getMenuTree() {
    return request({
        url: '/system/menu/getMenuTree',
        method: 'get',
    })
}
export function PostgetMenuTree(data) {
    return request({
        url: '/system/subsys/bindMenu',
        method: 'post',
        data
    })
}

export function selectBindMenuList(id) {
    return request({
        url: '/system/subsys/selectBindMenuList/'+id,
        method: 'get',
    })
}

export function smartmealList(query) {
    return request({
        url: '/pk-its/smartmeal/list',
        method: 'get',
        params: query
    })
}


export function indexmanageList(query) {
    return request({
        url: '/pk-its/hs/indexmanage/list',
        method: 'get',
        params: query
    })
}


export function runmonitorList(query) {
    return request({
        url: '/pk-its/monitor/runmonitor/list',
        method: 'get',
        params: query
    })
}

export function pedestrianflowmonitorList(query) {
    return request({
        url: '/pk-its/monitor/pedestrianflowmonitor/list',
        method: 'get',
        params: query
    })
}

export function nursemonitorList(query) {
    return request({
        url: '/pk-its/monitor/nursemonitor/list',
        method: 'get',
        params: query
    })
}

export function senselesstemperaturemeasure(query) {
    return request({
        url: '/pk-its/monitor/senselesstemperaturemeasure/list',
        method: 'get',
        params: query
    })
}



export function remotediagnosisList(query) {
    return request({
        url: '/pk-its/hs/abilityevaluate/list',
        method: 'get',
        params: query
    })
}
// 新增角色
export function abilityevaluateSave(data) {
    return request({
        url: '/pk-its/hs/abilityevaluate/save',
        method: 'post',
        data: data
    })
}

export function abilityevaluateUpdate(data) {
    return request({
        url: '/pk-its/hs/abilityevaluate/update',
        method: 'post',
        data: data
    })
}
